import request from '@/utils/request'


export function listType(query) {
    return request({
        url: '/admin/ItemCategory/page',
        method: 'get',
        params: query
    })
}


export function addType(data) {
    return request({
        url: '/admin/ItemCategory/add',
        method: 'post',
        data: data
    })
}


export function updateType(data) {
    return request({
        url: '/admin/ItemCategory/update',
        method: 'post',
        data: data
    })
}


export function delType(dictId) {
    return request({
        url: '/admin/ItemCategory/' + dictId,
        method: 'delete'
    })
}



export function getType(dictId) {
    return request({
        url: '/admin/ItemCategory/' + dictId,
        method: 'get'
    })
}

